package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressService {
    //查询当前用户所有地址
   List<AddressBook> getList(AddressBook addressBook);

   //新增地址
    void save(AddressBook addressBook);
    //根据id查询地址
    AddressBook getById(Long id);

    //修改地址
    void update(AddressBook addressBook);

    //设置默认地址
    void setDefault(AddressBook addressBook);

    //删除地址
    void deleteById(Long id);
}
